package com.fanyue.modules.wzb.entity;

import com.fanyue.core.base.BaseEntity;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import com.tangzc.autotable.annotation.Index;
import com.tangzc.mybatisflex.autotable.annotation.ColumnDefine;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
@Table(value = "wzb_clothing_record", comment = "服装操作记录表")
public class ClothingRecordEntity extends BaseEntity<ClothingRecordEntity> {
    @Index
    //操作类型，1-借出，2-归还，3-调货（减少），4-转库（增加）,5-上架，6-下架, 7-外部借出, 8-外部归还
    @ColumnDefine(comment = "类型")
    private Integer type;

    @ColumnDefine(comment = "被服id")
    private Long clothingId;

    @ColumnDefine(comment = "被服编号")
    private String clothingCode;

    @ColumnDefine(comment = "货位Id")
    private Long cargoId;

    @ColumnDefine(comment = "货位")
    private String cargoPosition;

    @ColumnDefine(comment = "人员Id")
    private Long appUserId;

    @ColumnDefine(comment = "外部机构及人员")
    private String orgAndPeople;

    @ColumnDefine(comment = "经办人")
    private String operator;

    @ColumnDefine(comment = "创建用户/设备Id")
    private Long sysUserId;

    @ColumnDefine(comment = "创建用户/设备")
    private String sysUserName;

    @ColumnDefine(comment = "部门Id")
    private Long departmentId;

    @ColumnDefine(comment = "扫脸记录id")
    private Long faceRecordId;

    @ColumnDefine(comment = "批量操作id")
    private Long batchId;

    //0-损坏，1-正常
    @ColumnDefine(comment = "状态")
    private Integer status;

    @Column(ignore = true)
    private String appUserName;

    @Column(ignore = true)
    private String departmentName;

    @Column(ignore = true)
    private List<Long> faceRecordIds;


}
